﻿package plugin.npcDialog
{
    import com.core.*;

    public class NpcDialogControl extends Control
    {

        public function NpcDialogControl(param1:Object)
        {
            super(param1);
            return;
        }// end function

        override public function update(param1:Obproxy, param2:ProxyChange) : void
        {
            if (param1.getName() == "npcdialog")
            {
                switch(param2.property)
                {
                    case "openRefresh":
                    {
                        this.target.openRefresh(param2.newvalue);
                        break;
                    }
                    case "updatebag":
                    {
                        this.target.updatebag();
                        break;
                    }
                    case "update":
                    {
                        this.target.update(param2.newvalue);
                        break;
                    }
                    default:
                    {
                        break;
                    }
                }
            }
            return;
        }// end function

    }
}
